# -*-coding: utf-8 -*-
import json

def str_To_dict(str):
    return json.loads(str)

def dict_To_str(dict):
    return json.dumps(dict)

if __name__ == "__main__":
    d = {'s':'you','d':'are'}   #给一个字典
    j = dict_To_str(d)
    print(j, type(j))
    d1 = str_To_dict(j)
    print(d1, type(d1))
